package cs2340.quarterblack.wheresmystuff;

public class StorageManager {
	private static Storage storageHandler = null;
	/**
	 * creates the new storage handler to be used by all features of the entire app (singleton)
	 */
	private StorageManager() {
		storageHandler = new LocalStorage();
	}
	
	/**
	 * gets the instance of the only storage manager in the app
	 * @return storageHandler the storage handler being used by the app
	 */
	public static Storage getInstance() {
		if (storageHandler == null) {
			new StorageManager();
		}
		return storageHandler;
	}
}
